package com.start.platform.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.start.platform.core.entity.StartPlatformFans;

import java.io.Serializable;
import java.util.Map;

public interface StartPlatformFansService extends IService<StartPlatformFans> {
    /**
     * 根据openId获取fans信息
     *
     * @param platformType
     * @param appId
     * @param openId
     * @return
     */
    StartPlatformFans getFansByOpenId(String platformType, String appId, String openId);

    /**
     * 根据openId检查是否存在fans
     *
     * @param platformType
     * @param appId
     * @param openId
     * @return
     */
    boolean hasFansByOpenId(String platformType, String appId, String openId);

    Map<String, Map<String, StartPlatformFans>> getUserFansMap(Serializable userId);

}